package com.maodou.android.data.model

import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class User(
    val id: Long,
    val name: String,
    val email: String,
    val username: String
)

@JsonClass(generateAdapter = true)
data class EmailCodeResult(
    val email:String? = null,
    val token:String? = null
)

@JsonClass(generateAdapter = true)
data class EmailRegisterParams(
    val code:String? = null,
    val email:String? = null,
    val confirmPassword:String? = null,
    val password:String? = null,
    val inviteCode:String? = null,
    var token:String? = null,
)

@JsonClass(generateAdapter = true)
data class ContactInfoVo(
    val imgUrl:String? = null,
    val link:String? = null,
    val subtitle:String? = null,
    val title:String? = null
)

/**
 * 用户创建请求
 */
@JsonClass(generateAdapter = true)
data class CreateUserRequest(
    val name: String,
    val email: String,
    val username: String
)

/**
 * 分页查询参数
 */
@JsonClass(generateAdapter = true)
data class UserPageRequest(
    val page: Int = 1,
    val pageSize: Int = 20
)